package com.rx.mine.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.rx.core.base.RxBaseConstant;
import com.rx.core.dbase.RxBaseDbMust;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper=false)
public class AppLoginVo extends RxBaseDbMust {
    private String code;
    private String nickName;
    private String loginType;
    private String openId;
    private String token;
    private Integer point;
    private Integer signInRecord;
    private Integer level;
    private Integer failCount;
    private Integer successCount;
    private Integer maxDifficult;
    @JSONField(format = RxBaseConstant.DATE_FORMAT_DATEONLY)
    private Date lastSignDate;
    @JSONField(format = RxBaseConstant.DATE_FORMAT_DATEONLY)
    private Date currentDate;

    public Date getCurrentDate() {
        return new Date();
    }
}
